<template>
  <div>
    <van-cell-group>
      <van-cell style="text-align: left" title="李霞蓉" is-link value="排队中" @click="clickDoctor"/>
      <van-cell>
        <template #title>
          <p style="text-align: left">红角洲耳鼻咽喉头颈外科门诊</p>
          <p style="text-align: left">2023-09-20 14:00-14:30</p>
        </template>
      </van-cell>
      <van-cell style="text-align: left" title="当前位次大约第6位" is-link value="预计等待30分钟" />
    </van-cell-group>
  </div>
</template>

<script setup>
// import { ref } from 'vue';

import router from "@/router";

const clickDoctor = () =>  {
  const data = {
    name: '李霞21蓉',
    status: '排队中'
  };

  router.push({
    path: '/RegisteredDetail',
    state: data
  });
};
</script>

<style scoped>

</style>
